package com.ytkj.digitalConstruction.entity.constructionprocess;

import java.util.Date;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import org.hibernate.validator.constraints.NotBlank;

/**
 * 
 * @author iking
 *
 */
public class ConstructionPreparation {
    private Integer preparationId;

    @NotNull(message="未指定项目流程！")
    private Integer flowId;

    @NotNull(message="未指定进场日期！")
    private Date approachDate;

    @NotBlank(message="未填写进场路线！")
    @Size(max=50,message="进场路线不能大于50个字！")
    private String approachPath;

    private Integer status;
    @Size(max=50,message="经办人不能大于50个字！")
    private String operator;

    private Integer updateBy;

    private Date updateDate;

    public Integer getPreparationId() {
        return preparationId;
    }

    public void setPreparationId(Integer preparationId) {
        this.preparationId = preparationId;
    }

    public Integer getFlowId() {
        return flowId;
    }

    public void setFlowId(Integer flowId) {
        this.flowId = flowId;
    }

    public Date getApproachDate() {
        return approachDate;
    }

    public void setApproachDate(Date approachDate) {
        this.approachDate = approachDate;
    }

    public String getApproachPath() {
        return approachPath;
    }

    public void setApproachPath(String approachPath) {
        this.approachPath = approachPath == null ? null : approachPath.trim();
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getOperator() {
        return operator;
    }

    public void setOperator(String operator) {
        this.operator = operator == null ? null : operator.trim();
    }

    public Integer getUpdateBy() {
        return updateBy;
    }

    public void setUpdateBy(Integer updateBy) {
        this.updateBy = updateBy;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }
}